#ifndef VEC2_H
#define VEC2_H

#include <d3dx10math.h>
#include <list>

//--------Vec3-------
class Vec2 : public D3DXVECTOR2
{
public:

	Vec2() : D3DXVECTOR2() { }
	Vec2(D3DXVECTOR2 &v2) { x = v2.x; y = v2.y; }
	Vec2(const float _x, const float _y) { x=_x; y=_y;}

	inline float Length() { return D3DXVec2Length(this); }
	inline Vec2 *Normalize() { return static_cast<Vec2*>(D3DXVec2Normalize(this, this)); }
	inline float Dot(const Vec2 &b) { return D3DXVec2Dot(this, &b); }
};

typedef std::list<Vec2> Vec2List; 


#endif